#include "MapToolSelectPoint.h"
#include "MapCanvas.h"
#include <TGS/GeoMath2.0/Point.h>
#include <QMouseEvent>


namespace TGS{
namespace MapControl{



MapToolSelectPoint::MapToolSelectPoint( MapCanvas* canvas )
	: MapTool(canvas)
{
	setCursor(Qt::ArrowCursor);
}


MapToolSelectPoint::~MapToolSelectPoint(void)
{
}

void MapToolSelectPoint::canvasReleaseEvent(QMouseEvent * e )
{
	TGS::GeoMath::Point point = toMapCoordinates(e->pos());
	canvas()->setSelectPoint(point);
}

}//MapControl
}//TGS